package com.dingyx.ps.feign.hystrix;

import com.dingyx.ps.feign.api.TsService;
import com.dingyx.ps.model.ReturnT;
import com.dingyx.ps.model.thirdpart.TsOrderReturnPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <第三方相关服务熔断处理>
 * @author ZhangYang
 * @date 2021/3/5 16:16
 * @version 1.0.0
 */
@Slf4j
@Component
public class TsServiceHystrix implements TsService {


    @Override
    public ReturnT updateOrder(TsOrderReturnPO po) {
        log.info("updateOrder 通知交付云结算完成 开始熔断");
        return ReturnT.ERROR("网络异常，请稍后重试");
    }
}
